package gulimall.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 线程池相关配置
 * @author HLF
 * @date 2022/7/28 14:02
 */
@Data
@Component
@ConfigurationProperties(prefix = "gulimall.thread")
public class ThreadPoolProperties {
    private Integer coreSize; //核心线程数

    private Integer maxSize;//最大线程数

    private Integer keepAliveTime;//空闲线程等待时间
}
